package com.anmong.cloud.cloudadmin.service.feign;

import com.anmong.cloud.cloudapi.dto.TestUpdateDTO;
import com.anmong.cloud.cloudapi.entity.SysUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * path为 server.servlet.context-path路径，必填，不然路由不到路径
 */
@FeignClient(name = "cloud-auth",path="cloud-auth")
public interface TestFeignService {

    @PutMapping("/auth/update")
    public SysUser update(@RequestBody  TestUpdateDTO dto);

    @GetMapping("/auth/list")
    public List<SysUser> list();

    @GetMapping("/auth/empty")
    public void empty();
}
